@import "media";

body {
  background-color: #f5f5f5;
}

.top {
  margin: 0 auto;
  width: 15rem;
  height: 8.88rem;
  background-color: #fff;

  .tit {
    width: 100%;
    height: 1.8rem;
    line-height: 1.8rem;
    text-align: center;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .2rem;
  }

  .search {
    // width: 100%;
    border-radius: 1rem;
    background-color: #f5f5f5;
    height: 1.4rem;
    line-height: 1.4rem;
    color: #ccc;
    font-size: .48rem;

    .icon-sousuo {
      margin: .48rem;
    }
  }

  .point {
    box-sizing: border-box;
    height: 1.68rem;
    // padding: .4rem 0;

    a {
      // display: block;
      height: .88rem;
      font-size: .56rem;
      color: black;
    }

    .line {
      width: .6rem;
      height: .08rem;
      background-color: #f52424;
      border-radius: 1px;
      margin-left: .36rem;
    }
  }

  .pic {
    height: 4.04rem;

    img {
      width: 100%;
      height: 100%;
    }
  }
}

.category {
  margin: 0 auto 0.44rem;
  width: 15rem;
  overflow: hidden;

  .aside_left {
    float: left;
    width: 3.6rem;
    font-size: .56rem;

    ul {
      .active {
        background-color: #fff;

        a {
          width: 3.6rem;
          display: block;
          color: #db372b;

        }
      }

      li {
        // background-color: #fff;
        padding: .68rem .64rem;
      }
    }
  }

  .aside_right {
    float: right;
    width: 11.4rem;
    background-color: #fff;
    padding-top: 10px;

    .aside_item {
      height: 4.08rem;
      box-sizing: border-box;
      border-bottom: 1px solid #f5f5f5;
      padding: .4rem 0 .44rem .4rem;
      display: block;

      img {
        width: 3.2rem;
        height: 3.2rem;
      }

      .aside_pop {
        float: right;
        width: 7.4rem;
        padding-right: .6rem;
        box-sizing: border-box;

        h3 {
          font-size: .52rem;
        }

        p {
          margin-top: .28rem;
          font-size: .4rem;
          color: #8c8c8c;
        }

        .price {
          float: left;
          margin-top: .2rem;
          color: #db372b;
          font-weight: 700;
          box-sizing: border-box;
          font-size: .36rem;

          span {
            &:nth-child(1) {
              font-size: .36rem;
            }

            &:nth-child(2) {
              font-size: .52rem;
            }

            &:nth-child(3) {
              font-size: .44rem;
            }

          }
        }

        .choose {
          float: right;
          margin-top: .2rem;
          text-decoration: none;
          width: 2.2rem;
          height: .8rem;
          background-color: #db372b;
          border-radius: .4rem;
          color: #fff;
          line-height: .8rem;
          font-size: .44rem;
          text-align: center;
        }
      }

    }
  }
}




.commodity-detail {
  position: fixed;
  z-index: 10;
  display: none;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 10;
  width: 15rem;
  background-color: rgba(0, 0, 0, 0.3);

  .commodity-detail-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20rem;
    border-radius: .4rem .4rem 0 0;
    background-color: #fff;

    .commodity-detail-content01 {
      height: 3.6rem;

      .commodity-detail-confirm {
        margin-top: .4rem;
        height: 100%;

        img {
          float: left;
          width: 3.6rem;
          height: 3.6rem;
        }

        .commodity-detail-text {
          float: left;
          position: relative;
          margin-left: .5rem;
          width: calc(100% - 3.6rem - .5rem);
          height: 3.6rem;

          h4 {
            width: 8rem;
            height: .6rem;
            line-height: .6rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: .6rem;
          }

          p {
            height: 1.16rem;
            line-height: 1.16rem;
            font-size: .44rem;
            color: #333;
          }

          .commodity-detail-price {
            position: absolute;
            bottom: 0;
            left: 0;
            font-weight: 550;
            color: #db372b;

            span:nth-child(1) {
              font-size: .44rem;
            }

            span:nth-child(2) {
              font-size: .7rem;
            }

            span:nth-child(3) {
              font-size: .5rem;
            }
          }

          .commodity-close {
            position: absolute;
            top: 0;
            right: 0;
            width: .64rem;
            height: .64rem;
            line-height: 0.64rem;
            border-radius: 50%;
            background-color: #ccc;
            font-size: .48rem;
            color: #fff;
            text-align: center;
          }
        }
      }
    }

    .commodity-detail-content02 {
      position: relative;

      p {
        margin-top: .9rem;
        margin-bottom: .5rem;
        font-size: .52rem;
      }

      .commodity-specifications {
        width: 100%;
        margin-bottom: 1.3rem;
        display: flex;
        flex-flow: row wrap;
        align-content: space-between;
        justify-content: space-between;

        li {
          width: 4.3rem;
          height: 1.4rem;
          border-right: .16rem;
          line-height: 1.4rem;
          background-color: #f7f7f7;
          font-size: .44rem;
          text-align: center;

          &:hover {
            color: #db372b;
            background-color: #ffe9e7;
          }
        }
      }
    }

    .commodity-count {
      height: .8rem;

      .commodity-count-button {
        float: right;
        display: flex;
        justify-content: space-between;
        height: .8rem;
        line-height: 0.8rem;
        text-align: center;

        i:nth-child(1),
        i:nth-child(3) {
          width: 1rem;
          border: 1px solid #db372b;
          border-radius: .12rem;
          background-color: #fff;
        }

        i:nth-child(2) {
          margin: 0 .4rem;
        }
      }
    }

    .commodity-finalConfirm {
      position: absolute;
      left: 50%;
      bottom: 1.8rem;
      transform: translateX(-50%);
      width: 13.8rem;
      height: 1.6rem;
      line-height: 1.6rem;
      border-radius: 0.8rem;
      background-color: #db372b;
      text-align: center;

      a {
        display: block;
        width: 100%;
        height: 100%;
        font-size: .6rem;
        color: #fff;
      }
    }
  }
}